package com.weiyuwqj.api.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "bus_repay_order")
public class BusRepayOrder implements Serializable {
    @Id
    private Integer id;

    /**
     * 还款id
     */
    @Column(name = "repay_id")
    private Integer repayId;

    @Column(name = "item_id")
    private Integer itemId;

    /**
     * 还款金额
     */
    @Column(name = "repay_amount")
    private BigDecimal repayAmount;

    /**
     * 还款订单号
     */
    @Column(name = "repay_order")
    private String repayOrder;

    /**
     *  1-借款人还款，2-担保人还款'
     */
    @Column(name = "repay_type")
    private Integer repayType;

    /**
     * 添加时间
     */
    private Date addtime;

    /**
     * 添加ip
     */
    private String addip;

    /**
     * 还款期数，默认为0
     * @return
     */
    @Column(name = "repay_period")
    private Integer repayPeriod;

    public Integer getRepayPeriod() {
        return repayPeriod;
    }

    public void setRepayPeriod(Integer repayPeriod) {
        this.repayPeriod = repayPeriod;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    private String remarks;



    public Integer getRepayType() {
        return repayType;
    }

    public void setRepayType(Integer repayType) {
        this.repayType = repayType;
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取还款id
     *
     * @return repay_id - 还款id
     */
    public Integer getRepayId() {
        return repayId;
    }

    /**
     * 设置还款id
     *
     * @param repayId 还款id
     */
    public void setRepayId(Integer repayId) {
        this.repayId = repayId;
    }

    /**
     * 获取还款金额
     *
     * @return repay_amount - 还款金额
     */
    public BigDecimal getRepayAmount() {
        return repayAmount;
    }

    /**
     * 设置还款金额
     *
     * @param repayAmount 还款金额
     */
    public void setRepayAmount(BigDecimal repayAmount) {
        this.repayAmount = repayAmount;
    }

    /**
     * 获取还款订单号
     *
     * @return repay_order - 还款订单号
     */
    public String getRepayOrder() {
        return repayOrder;
    }

    /**
     * 设置还款订单号
     *
     * @param repayOrder 还款订单号
     */
    public void setRepayOrder(String repayOrder) {
        this.repayOrder = repayOrder;
    }

    /**
     * 获取添加时间
     *
     * @return addtime - 添加时间
     */
    public Date getAddtime() {
        return addtime;
    }

    /**
     * 设置添加时间
     *
     * @param addtime 添加时间
     */
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    /**
     * 获取添加ip
     *
     * @return addip - 添加ip
     */
    public String getAddip() {
        return addip;
    }

    /**
     * 设置添加ip
     *
     * @param addip 添加ip
     */
    public void setAddip(String addip) {
        this.addip = addip;
    }
}